/*
 * ColAlbum.cpp - Grupo 5 - Prog. Avanzada 2011
 *
 *  Javier Dominguez - 4.901.161-6
 *  Marcelo Parada - 1.977.094-9
 *  Rodrigo Ruiz - 4.481.611-2
 *  Maximiliano Silvera - 4.106.938-6
 */

#include "ColAlbum.h"


ColAlbum::ColAlbum()
{
	col = new List();
}

bool ColAlbum::member(Album *album)
{
	return col->member(album);
}

int ColAlbum::size()
{
	return col->size();
}

void ColAlbum::add(Album *album)
{
	col->add(album);
}

string ColAlbum::toString()
{
	return col->toString();
}

AlbumIterator *ColAlbum::getIterator()
{
	return new AlbumIterator(col->getIterator());
}

bool ColAlbum::same(ColAlbum *colAlbum)
{
	return col->same(colAlbum->col);
}

bool ColAlbum::isEmpty()
{
	return col->isEmpty();
}

void ColAlbum::remove(Album *album)
{
	col->remove(album);
}

ColAlbum::~ColAlbum()
{
	col->~ICollection();

	delete col;
}
